from django.db import models

# Create your models here.
from django.db import models

from utils.BaseModel import BaseModel


# Create your models here.
class TopModel(BaseModel):
    navname = models.CharField(max_length=50,verbose_name="导航名称")
    position = models.BooleanField(default=True,verbose_name="导航位置")
    link = models.CharField(max_length=200,verbose_name="链接",default="#")
    ishttp = models.BooleanField(default=False,verbose_name="是否是http链接")
    class Meta:
        db_table = "fgnav"

class BannerModel(BaseModel):
    title=models.CharField(max_length=40,verbose_name='标题')
    img=models.CharField(max_length=100,verbose_name='图片地址')
    ishttp=models.BooleanField(default=False,verbose_name='是否为链接')
    link=models.CharField(max_length=100,verbose_name='点击跳转路径',default="#")
    class Meta:
        db_table = "fgbanner"
